{ //=========Macro generated from canvas: c1/c1 //========= (Wed Aug 16 11:24:01 2006) by ROOT version5.08/00 TCanvas *c1 = new TCanvas("c1", "c1",32,386,500,500); gStyle->SetOptStat(0); gStyle->SetOptTitle(0); c1->Range(-0.153846,0.14,1.12821,0.54); c1->SetFillColor(10); c1->SetBorderMode(0); c1->SetBorderSize(2); c1->SetLeftMargin(0.16); c1->SetBottomMargin(0.15); c1->SetFrameFillColor(0); c1->SetFrameLineWidth(2); c1->SetFrameLineWidth(2); Double_t xAxis[13] = {0.00, 0.45, 0.55, 0.95, 1.05, 1.50, 1.95, 2.05, 2.50, 2.95, 3.05, 3.50, 5.00}; TH1 *EvsC1 = new TH1F("EvsC1","SigmaE/E vs Cost 1",12, xAxis); EvsC1->SetBinContent(2,3.700); EvsC1->SetBinContent(4,3.727); EvsC1->SetBinContent(7,3.995); EvsC1->SetBinContent(10,4.203); EvsC1->SetBinError(2,0.050); EvsC1->SetBinError(4,0.062); EvsC1->SetBinError(7,0.076); EvsC1->SetBinError(10,0.076); g1 = new TGraphErrors(4); g1->SetLineColor(4); g1->SetLineWidth(2); g1->SetLineStyle(1); g1->SetMarkerColor(4); g1->SetMarkerStyle(25); g1->SetMarkerSize(1.3); g1->SetPoint(0,0.5, 3.700); g1->SetPoint(1,1.0, 3.727); g1->SetPoint(2,2.0, 3.995); g1->SetPoint(3,3.0, 4.203); g1->SetPointError(0,0,0.050); g1->SetPointError(1,0,0.062); g1->SetPointError(2,0,0.076); g1->SetPointError(3,0,0.076); EvsC1->SetLineColor(4); EvsC1->SetLineWidth(2); EvsC1->SetMarkerColor(4); EvsC1->SetMarkerStyle(25); EvsC1->SetMarkerSize(1.3); g2 = new TGraphErrors(4); g2->SetLineColor(2); g2->SetLineWidth(2); g2->SetLineStyle(1); g2->SetMarkerColor(2); g2->SetMarkerStyle(21); g2->SetMarkerSize(1.3); g2->SetPoint(0,0.5, 3.074); g2->SetPoint(1,1.0, 3.222); g2->SetPoint(2,2.0, 3.896); g2->SetPoint(3,3.0, 4.361); g2->SetPointError(0,0,0.042); g2->SetPointError(1,0,0.063); g2->SetPointError(2,0,0.073); g2->SetPointError(3,0,0.082); g3 = new TGraphErrors(4); g3->SetLineColor(6); g3->SetLineWidth(2); g3->SetLineStyle(1); g3->SetMarkerColor(6); g3->SetMarkerStyle(24); g3->SetMarkerSize(1.3); g3->SetPoint(0,0.5, 3.209); g3->SetPoint(1,1.0, 3.700); g3->SetPoint(2,2.0, 4.488); g3->SetPoint(3,3.0, 4.748); g3->SetPointError(0,0,0.042); g3->SetPointError(1,0,0.084); g3->SetPointError(2,0,0.088); g3->SetPointError(3,0,0.095); g4 = new TGraphErrors(4); g4->SetLineColor(1); g4->SetLineWidth(2); g4->SetLineStyle(1); g4->SetMarkerColor(1); g4->SetMarkerStyle(20); g4->SetMarkerSize(1.3); g4->SetPoint(0,0.5, 3.299); g4->SetPoint(1,1.0, 3.784); g4->SetPoint(2,2.0, 4.839); g4->SetPoint(3,3.0, 5.390); g4->SetPointError(0,0,0.051); g4->SetPointError(1,0,0.083); g4->SetPointError(2,0,0.101); g4->SetPointError(3,0,0.114); EvsC1->SetMinimum(2.8); EvsC1->SetMaximum(5.0); EvsC1->SetStats(0); EvsC1->SetLineWidth(1); EvsC1->GetXaxis()->SetTitle("ECAL Cell Size/cm"); EvsC1->GetXaxis()->SetLabelSize(0.05); EvsC1->GetXaxis()->SetTitleSize(0.065); EvsC1->GetXaxis()->SetTitleOffset(0.9); EvsC1->GetYaxis()->SetNdivisions(505); EvsC1->GetYaxis()->SetTitle("rms_{90}/E_{jet} [%]"); EvsC1->GetYaxis()->SetLabelSize(0.05); EvsC1->GetYaxis()->SetTitleSize(0.065); EvsC1->GetYaxis()->SetTitleOffset(1.1); EvsC1->GetXaxis()->SetRange(0,11); EvsC1->Draw("p"); g1->Draw("ple same"); g2->Draw("ple same"); g3->Draw("ple same"); g4->Draw("ple same"); TLatex * tex = new TLatex(0.2,4.75,"a)"); // tex->SetTextFont(22); tex->SetTextSize(0.06); tex->SetLineWidth(2); tex->Draw(); TLegend *leg = new TLegend(0.55,0.2,0.85,0.38,NULL,"brNDC"); leg->SetTextSize(0.045); leg->SetLineColor(1); leg->SetLineStyle(1); leg->SetLineWidth(1); leg->SetFillColor(1); leg->SetFillStyle(0); leg->SetBorderSize(0); TLegendEntry *entry=leg->AddEntry("NULL"," 45 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(4); entry->SetMarkerStyle(25); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","100 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(2); entry->SetMarkerStyle(21); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","180 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(6); entry->SetMarkerStyle(24); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); TLegendEntry *entry=leg->AddEntry("NULL","250 GeV Jets","p"); entry->SetLineColor(1); entry->SetLineStyle(1); entry->SetLineWidth(1); entry->SetMarkerColor(1); entry->SetMarkerStyle(20); entry->SetMarkerSize(1.3); entry->SetTextAlign(12); entry->SetTextColor(1); leg->Draw(); c1->Modified(); c1->cd(); c1->SetSelected(c1); c1->SaveAs("ecalseg_sige.gif"); c1->SaveAs("ecalseg_sige.eps"); }